# file:: traits.rb
# author::  Ralph M. Churchill
# version::
# date::
#
# This source code copyright (C) 2006 by Ralph M. Churchill
# All rights reserved.
#
# Released under the terms of the GNU General Public License
# See LICENSE file for additional information.

require 'models/entity'

module HasTraits
    properties :traits
    
    def [](k)
        @traits||={}
        @traits[k]
    end
    def []=(k,v)
        @traits||={}
        @traits[k] = v
    end
end
